<template>
    <div class="kfFeedback">
        <van-nav-bar
                title="反馈信息"
                left-text="返回"
                left-arrow
                border
                fixed
                @click-left="$router.go(-1)"
        />
        <div style="height:50px"></div>
        <van-cell-group>
            <van-field label="员工姓名" v-model="info.realname" value="输入框只读" readonly/>
            <van-field v-model="info.error_msg" rows="3" autosize label="审核反馈信息" type="textarea"
                       placeholder="请输入留言" readonly/>
        </van-cell-group>
    </div>
</template>

<script>
    export default {
        name: "kfFeedback",
        data() {
            return {
               info:{
                   realname:'',
                   error_msg:'',
               },
            };
        },
        methods: {
            infoData() {
                let params = {
                    wx_member_id: localStorage.getItem('wx_member_id'),
                    token: localStorage.getItem('token'),
                    id: this.$route.query.id
                };
                this.$post("/api/order_detail/get_feedback", params)
                    .then(res => {
                        this.info=res.data
                    })
                    .catch(err => {
                    });
            }
        },
        created() {
            // 实例创建完成
            this.infoData();
        },
        beforeCreate() {
            document.querySelector("body").setAttribute("style", "background-color:#fff");
        }
    }
</script>

<style scoped lang='less'>
    .kfFeedback {
        padding-top: 20px;
    }
</style>